package StudyCode.summary.mycollection;

import java.util.ArrayList;
import java.util.List;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class QuizForListContainsMethod {
	public static void main(String[] arguments) {
		List<String> list = new ArrayList<>();
		String[] codes = {"alpha", "lambda", "gamma", "delta", "zeta"};

		for (int i = 0; i < codes.length; i++) {
			if (!list.contains(codes[i])) {
				list.add(codes[i]);
			}
		}
		for (String code : list) {
			System.out.println(code);
		}
	}
}
